package com.xuecheng.content.model.dto;

import com.xuecheng.content.model.po.Teachplan;
import com.xuecheng.content.model.po.TeachplanMedia;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * @description 课程计划树型结构dto
 * @author Mr.M
 * @date 2022/9/9 10:27
 * @version 1.0
 */


public class TeachplanDto extends Teachplan {

    //课程计划关联的媒资信息
    TeachplanMedia teachplanMedia;

    //子结点
    List<TeachplanDto> teachPlanTreeNodes;

    public TeachplanMedia getTeachplanMedia() {
        return teachplanMedia;
    }

    public void setTeachplanMedia(TeachplanMedia teachplanMedia) {
        this.teachplanMedia = teachplanMedia;
    }

    public List<TeachplanDto> getTeachPlanTreeNodes() {
        return teachPlanTreeNodes;
    }

    public void setTeachPlanTreeNodes(List<TeachplanDto> teachPlanTreeNodes) {
        this.teachPlanTreeNodes = teachPlanTreeNodes;
    }

    @Override
    public String toString() {
        return "TeachplanDto{" +
                "teachplanMedia=" + teachplanMedia +
                ", teachPlanTreeNodes=" + teachPlanTreeNodes +
                '}';
    }
}